package com.kolalo.annotation.beans.autowire;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class AutowiredConstructor {

    private int age;
    private String name;

    @Autowired
    private AutowiredConstructor(){}

    @Autowired
    AutowiredConstructor(String name){
        this.name=name;
    }

    @Autowired
    AutowiredConstructor(int age){
        this.age=age;
    }

    @Autowired
    AutowiredConstructor(String name, int age){
        this.name=name;
        this.age=age;
    }
}

